/**
 * @file    jm_drv_cfg.h
 * @brief   关节电机驱动配置文件
 * @details This is the detail description.
 * @author  wang-haoyu
 * @date    2025年7月10日 (created)
 * @version 0.0.1
 * @par Copyright (C):
 *          All Rights Reserved.
 * @par Encoding:
 *          UTF-8
 * @par Description        :
 * 1. Hardware Descriptions:
 *      None.
 * 2. Program Architecture:
 *      None.
 * 3. File Usage:
 *      None.
 * 4. Limitations:
 *      None.
 * 5. Else:
 *      None.
 * @par Modification:
 * -# Date          : 2025年7月10日;
 * Revision         : 0.0.1;
 * Author           : wang-haoyu;
 * Contents         :
 */
 
/* =============================================================================
 *                                header files
 * ========================================================================== */
#ifndef __JM_DRV_CFG_H
#define __JM_DRV_CFG_H

#define JOINT_MOTOR_CAN_DEVICE_NAME     "can1"

#define JOINT_MOTOR_RX_SEM_NAME         "jm_sem_rx"
#define JOINT_MOTOR_UNPACK_SEM_NAME     "jm_sem_unpack"
#define JOINT_MOTOR_RECV_FIFO_NAME      "jm_recv_data_fifo"
#define JOINT_MOTOR_SEND_MQ_NAME        "jm_drv_send_mq"

#define JOINT_MOTOR_RECV_FIFO_SIZE      1024
#define JOINT_MOTOR_INIT_VALUE          0
#define JOINT_MOTOR_MQ_MASSAGE_SIZE     1024
#define JOINT_MOTOR_MQ_MAX_MASSAGE_SIZE 8
/* =============================================================================
 *                      各任务栈大小/优先级/时间片定义-start
 * ========================================================================== */

#define JOINT_MOTOR_CAN_RECV_THREAD_PARAM   2048,9,2

#define JOINT_MOTOR_CAN_UNPACK_THREAD_PARAM 2048,15,2

#define JOINT_MOTOR_CAN_SEND_THREAD_PARAM   1024,15,2

/* =============================================================================
 *                      各任务栈大小/优先级/时间片定义-end
 * ========================================================================== */

#endif

/*******************************************************************************
 *                                  EOF
 ******************************************************************************/